package com.yipinhouse.employee.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.employee.client.param.InsertWatchRecordParam;
import com.yipinhouse.employee.client.param.UpdateWatchRecordParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "watchRecordManageClient",name="employee",path="watchRecord")
public interface WatchRecordManageClient {
    /**
     * 新增用户看房记录
     * @param insertWatchRecordParam
     * @return
     */
    @PostMapping("insertWatchRecord")
    Result insertWatchRecord(@RequestBody InsertWatchRecordParam insertWatchRecordParam);

    /**
     * 看房记录表修改
     * @param updateWatchRecordParam
     * @return
     */
    @PutMapping("updateWatchRecord")
    Result updateWatchRecord(@RequestBody UpdateWatchRecordParam updateWatchRecordParam);
}
